package me.qingy.core.service;

import me.qingy.core.entity.UserOnline;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 在线用户记录 服务类
 * </p>
 *
 * @author qingy
 * @since 2021-04-28
 */
public interface UserOnlineService extends IService<UserOnline> {

    List<UserOnline> selectOnlineByExpired(Date expiredDate);

    void batchDeleteOnline(List<String> needOfflineIdList);

    void removeUserCache(String loginName, String sessionId);
}
